package com.deer.wms.base.system.service.bill.impl;

import com.deer.wms.base.system.dao.bill.BillOutMesMapper;
import com.deer.wms.base.system.model.bill.BillOutMaster;
import com.deer.wms.base.system.model.bill.BillOutMes;
import com.deer.wms.base.system.service.bill.BillOutMesService;
import com.deer.wms.common.core.service.AbstractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 李帅辰
 * @date 2021/6/24 12:40
 */
@Service
public class BillOutMesServiceImpl extends AbstractService<BillOutMes, Integer> implements BillOutMesService {

    @Autowired
    private BillOutMesMapper billOutMesMapper;
    @Override
    public int saveBillOutMes(BillOutMes billOutMes) {
        return billOutMesMapper.saveBillOutMes(billOutMes);
    }

    @Override
    public int updateBillOutMes(BillOutMes billOutMes) {
        return billOutMesMapper.updateBillOutMes(billOutMes);
    }

    @Override
    public List<BillOutMes> findBillOutMesList(BillOutMes billOutMes) {
        return billOutMesMapper.findBillOutMesList(billOutMes);
    }

    @Override
    public BillOutMes findBillOutMesBybillOutMesId(Integer billOutMesId) {
        return billOutMesMapper.findBillOutMesBybillOutMesId(billOutMesId);
    }

    @Override
    public BillOutMes findBillOutMesByMaterialId(String materialId) {
        BillOutMes model = billOutMesMapper.findBillOutMesByMaterialId(materialId);
        return model;
    }
}
